{layout name="layout/food" /}
<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" enctype="multipart/form-data" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">交易设置</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">下列任务 </label>
                                <div class="am-u-sm-9 am-input-group">
                                    <div class="am-u-sm-7">
                                        <input type="number" min="1" class="am-form-field" name="data[order][time]"
                                               value="{$model['order']['time']}" required>
                                    </div>
                                    <label class="am-u-sm-5 am-form-label am-text-left">分钟执行一次</label>
                                    <div class="help-block am-u-sm-12">
                                        <small>最小设置1。如该设置10后，下列参数即使设置1，最长也要等待10分钟才能执行（刷新）一次</small>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">未支付订单 </label>
                                <div class="am-u-sm-9 am-input-group">
                                    <div class="am-u-sm-7">
                                        <input type="number" class="am-form-field" name="data[order][close_time]"
                                               value="{$model['order']['close_time']}" required>
                                    </div>
                                    <label class="am-u-sm-5 am-form-label am-text-left">分钟后自动关闭</label>
                                    <div class="help-block am-u-sm-12">
                                        <small>如果在时间范围内未进行付款，系统自动关闭，设置0不自动关闭</small>
                                    </div>
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">外卖配送中订单 </label>
                                <div class="am-u-sm-9 am-input-group">
                                    <div class="am-u-sm-7">
                                        <input type="number" class="am-form-field" name="data[order][delivery_time]"
                                               value="{$model['order']['delivery_time']}" required>
                                    </div>
                                    <label class="am-u-sm-5 am-form-label am-text-left">分钟后自动完成</label>
                                    <div class="help-block am-u-sm-12">
                                        <small>如果在时间范围内未进行确认操作，系统自动确认送货完成，设置0不自动完成</small>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">配送完成订单 </label>
                                <div class="am-u-sm-9 am-input-group">
                                    <div class="am-u-sm-7">
                                        <input type="number" class="am-form-field" name="data[order][receive_time]"
                                               value="{$model['order']['receive_time']}" required>
                                    </div>
                                    <label class="am-u-sm-5 am-form-label am-text-left">分钟后自动收货</label>
                                    <div class="help-block am-u-sm-12">
                                        <small>（后付费无效）如果在时间范围内用户未进行确认收货操作，系统自动完成收货，设置0不自动完成</small>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">确认收货订单 </label>
                                <div class="am-u-sm-9 am-input-group">
                                    <div class="am-u-sm-7">
                                        <input type="number" class="am-form-field" name="data[order][cmt_time]"
                                               value="{$model['order']['cmt_time']}" required>
                                    </div>
                                    <label class="am-u-sm-5 am-form-label am-text-left">分钟后自动评价</label>
                                    <div class="help-block am-u-sm-12">
                                        <small>如果在时间范围内用户未进行评价操作，系统自动完成评价，设置0不自动完成</small>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">售后退款订单 </label>
                                <div class="am-u-sm-9 am-input-group">
                                    <div class="am-u-sm-7">
                                        <input type="number" class="am-form-field" name="data[order][refund_time]"
                                               value="{$model['order']['refund_time']}" required>
                                    </div>
                                    <label class="am-u-sm-5 am-form-label am-text-left">分钟内自动退款</label>
                                    <div class="help-block am-u-sm-12">
                                        <small>如果在时间范围未进行确认退款操作，系统自动完成退款，设置0不自动完成</small>
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {

        $('#my-form').formPost();

    });
</script>
